package com.youbug.mall.cart.service;


import com.youbug.mall.cart.vo.CartItemVo;
import com.youbug.mall.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;


public interface CartService {

    CartVo getCart() throws ExecutionException, InterruptedException;

    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartItem(Long skuId);

    void clearCartInfo(String cartKey);

    void checkItem(Long skuId, Integer checked);

    void changeItemCount(Long skuId, Integer num);

    void deleteIdCartInfo(Long skuId);

    List<CartItemVo> getCurrentUserCartItems();
}
